import axios from 'axios';

class IdCard {
  constructor () {
    this.apuList = {
      startConnect: 'http://127.0.0.1:18889/api/connect',
      readCert: 'http://127.0.0.1:18889/api/readCert',
      disconnect:"http://127.0.0.1:18889/api/disconnect",
    }
  }

  async startConnect(){
    return await axios.post(this.apuList.startConnect)
  }

  async readCert() {
    return await axios.post(this.apuList.readCert)
  }

  async disconnect(){
    return await axios.post(this.apuList.disconnect)
  }

}

export default new IdCard();